package com.kefu.sys.mapper;

import com.kefu.common.mybatis.KefuMapper;
import com.kefu.sys.model.SysOrgan;
import org.apache.ibatis.annotations.Select;


public interface SysOrganMapper extends KefuMapper<SysOrgan> {
    @Select("select COALESCE(max(weight),0) from sys_organ where  tenant_id = #{arg0} and parent_id = #{arg1}")
    int getMaxWeight(String tenantId, String parentId);
}